package test1.opengl.jasonbu.com.myapplication1;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.opengl.GLSurfaceView.Renderer;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.egl.EGLConfig;

public class MainActivity extends Activity {

    private GLSurfaceView glView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);
        glView =new GLSurfaceView(this);
        glView.setRenderer(new GLRender(this));
        setContentView(glView);
    }

    @Override
    protected void onPause(){
        super.onPause();
        glView.onPause();
    }

    // onPause之后调用
    @Override
    protected void onResume()
    {
        super.onResume();
        glView.onResume();
    }
}
